package cn.edu.jxau.service;

import cn.edu.jxau.dao.UserDao;
import cn.edu.jxau.domain.user;

public class registerCheck {

	public static String checkUserName(String username) {

		UserDao userdao = new UserDao();
		user user = userdao.findByUsername(username);

		if (user != null) {
			if (username.equals(user.getUsername())) {
				return "亲,该用户名已经被注册,换一个吧!";
			}
		} else if (username.equals("")) {
			return "";
		}

		return "正确";
	}

	public static String checkVerifyCode() {

		return null;
	}
}
